local skel = fk.CreateSkill {
  name = "role_exmode_mingtu__lb_shi",
}

Fk:loadTranslationTable {
  ["role_exmode_mingtu__lb_shi"] = "识",
  [":role_exmode_mingtu__lb_shi"] = "准备阶段，你可以卜算2。",
  ["#role_exmode_mingtu__lb_shi"] = "识：你可以卜算2",
}
--[[
skel:addEffect(fk.CardUsing, {
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(skel.name) and target == player and data.card.trueName == "slash"
    and player:usedSkillTimes(skel.name, Player.HistoryTurn) == 0
    and #data:getExtraTargets() > 0
  end,
  on_cost = function (self, event, target, player, data)
    local room = player.room
    local tos = room:askToChoosePlayers(player, {
      targets = data:getExtraTargets(),
      min_num = 1,
      max_num = 1,
      skill_name = skel.name,
      cancelable = true,
      prompt = "#role_exmode_mingtu__lb_shi:::"..data.card:toLogString(),
    })
    if #tos > 0 then
      event:setCostData(self, {tos = tos})
      return true
    end
  end,
  on_use = function (self, event, target, player, data)
    data:addTarget(event:getCostData(self).tos)
  end,
})
--]]

skel:addEffect(fk.EventPhaseStart, {
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.phase == Player.Start
  end,
  on_cost = function (self, event, target, player, data)
    return player.room:askToSkillInvoke(player, {skill_name = skel.name, prompt = "#role_exmode_mingtu__lb_shi" })
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:askToGuanxing(player, {
      cards = room:getNCards(2),
      skill_name = skel.name,
    })
  end,
})

return skel